<template>
<div id="app">
  <!-- <keep-alive>
    <router-view class="view-router"  v-if="$route.meta.keepAlive"></router-view>
  </keep-alive> -->
  <router-view class="view-router"  v-if="isRouterAlive"></router-view>
  <router-view name="tabbar"></router-view>
</div>
</template>
<script>
export default {
  name:'app',
  provide() {
    return {
      reload: this.reload
    }
  },
  data() {
    return {
        isRouterAlive: true
    }
  },
  methods:{
    reload() {
      this.isRouterAlive=false;
      this.$nextTick(function() {
        this.isRouterAlive=true
      })
    }
}
}
</script>
<style lang="scss" src="./assets/scss/global.scss" />
